<!doctype html><html><head><title>rb.menu.Menu</title><link href="../../stylesheet.css" rel="stylesheet" type="text/css"></head><body><a href="../../index.html">Home</a><h1>Class rb.menu.Menu</h1><p>Component which is responsible for the dynamic behavior in the main
navigation menu, including showing/hiding the Admin menu, updating the
login/logout links based on user auth status, highlighting the selcted
blog post, and more.</p>extends <a href="../../goog/Disposable.html">goog.Disposable</a><table class="method-list"><tr><td colspan="2"><strong>Instance Method Summary</strong></td></tr><tr><td class="method-list-cell method-access method-protected"></td><td class="method-list-cell method-cell"><code>disposeInternal()</code><br><p class="method-description">Deletes or nulls out any references to COM objects, DOM nodes, or other
disposable objects. Classes that extend {@code goog.Disposable} should
override this method.
Not reentrant. To avoid calling it twice, it must only be called from the
subclass' {@code disposeInternal} method. Everywhere else the public
{@code dispose} method must be used.
For example:
<pre>
mypackage.MyClass = function() {
goog.base(this);
// Constructor logic specific to MyClass.
...
};
goog.inherits(mypackage.MyClass, goog.Disposable);

mypackage.MyClass.prototype.disposeInternal = function() {
goog.base(this, 'disposeInternal');
// Dispose logic specific to MyClass.
...
};
</pre></p></td></tr><tr><td class="method-list-cell method-access method-private"></td><td class="method-list-cell method-cell"><code>dontGotPostList_()</code><br><p class="method-description">Callback for unsuccessful retrieval of recent post summaries.</p></td></tr><tr><td class="method-list-cell method-access method-private"></td><td class="method-list-cell method-cell"><code>getPostList_()</code><br><p class="method-description">Get the list of posts to put into the recent entry list.</p></td></tr><tr><td class="method-list-cell method-access method-private"></td><td class="method-list-cell method-cell"><code>gotPostList_(?Array posts)</code><br><p class="method-description">Callback for successful retrieval of recent post summaries.</p></td></tr><tr><td class="method-list-cell method-access method-private"></td><td class="method-list-cell method-cell"><code>gotUser_(?rb.auth.User user)</code><br><p class="method-description">Callback to AuthManager.getCurrentUser().</p></td></tr><tr><td class="method-list-cell method-access method-private"></td><td class="method-list-cell method-cell"><code>handlePostEvent_(?rb.post.PostEvent e)</code><br><p class="method-description">Handle DISPLAY PostEvents.</p></td></tr><tr><td class="method-list-cell method-access method-private"></td><td class="method-list-cell method-cell"><code>highlightLink_(string= path)</code><br><p class="method-description">Highlight the link to the given path.</p></td></tr><tr><td class="method-list-cell method-access method-private"></td><td class="method-list-cell method-cell"><code>onNavigate_(?relief.nav.NavEvent e)</code><br><p class="method-description">When the user navigates to a page that does not display a blog post, there
is no event to tell us that no post is being shown, so on all navigations we
simply clear the highlighting.  As highlighted post titles are cached, this
is cheap.</p></td></tr><tr><td class="method-list-cell method-access method-private"></td><td class="method-list-cell method-cell"><code>updateAuthMenu_(?rb.auth.User user)</code><br><p class="method-description">Updates the state of the main menu.</p></td></tr><tr><td class="method-list-cell method-access method-private"></td><td class="method-list-cell method-cell"><code>updateAuth_(?relief.auth.AuthChangeEvent e)</code><br><p class="method-description">Handles authentication changes.</p></td></tr></table></body></html>